package define

const (
	System                       = "system:"
	RedisApp                     = "device-admin:"                           // 应用名称
	MicoServiceKeyPrefix         = System + "micro-service:"                 // 微服务前缀
	RedisAlarmNotifyList         = System + "alarm-notify-list"              // 告警通知队列
	RedisAppVersion              = RedisApp + "app-version"                  // 应用版本
	RedisDeviceCmd95             = RedisApp + "device-cmd95:"                // 95设备命令
	RedisDeviceCmd               = RedisApp + "device-cmd:"                  // 设备命令（包含97、98）
	RedisRobotRTInfo             = RedisApp + "robot-realtime-info:"         // 设备实时信息
	RedisRobotRTAlarmInfo        = RedisApp + "robot-realtime-alarm-info"    // 设备实时告警信息
	RedisAlarmRecordLock         = RedisApp + "alarm-record-lock:"           // 设备告警Lock
	RedisDeviceActiveDuration    = RedisApp + "device-active-duration:"      // 设备活跃时常
	RedisDeviceTaskRecord        = RedisApp + "device-task-record:"          // 任务记录
	RedisTaskDataUpdatedAt       = RedisApp + "task-data-updated-at"         // 设备任务更新时间
	UserLoginTokenPrefix         = "system-admin:user-login-token:"          // 用户登录token前缀
	RedisISUnderMonitoring       = RedisApp + "is-under-monitoring:"         // 正在远程监控中
	HomePageReport               = RedisApp + "homepage-report"              // 首页统计
	RedisDeviceList              = RedisApp + "device-list"                  // 设备列表
	RedisLocationList            = RedisApp + "location-list"                // 位置列表
	RedisDeviceTaskInfo          = RedisApp + "device-task-info"             // 设备任务信息
	CMDRsp                       = RedisApp + "cmd-rsp:"                     // 下行命名响应结果
	CMDBusy                      = RedisApp + "cmd-busy:"                    // 下行命令繁忙标志
	RedisRobotRTInfoSubFlag      = RedisApp + "robot-rtinfo-sub-flag:"       // 设备实时信息订阅标志
	RedisRobotRTAlarmInfoSubFlag = RedisApp + "robot-rtalarm-info-sub-flag:" // 设备实时告警信息订阅标志
	RedisOfflineDeviceSet        = RedisApp + "offline-device-set"           // 离线设备集合
	RedisLatestActiveDeviceList  = RedisApp + "latest-active-device-list:"   // 最近活跃设备集合
	RedisDeviceSessionIP         = RedisApp + "device-session-ip:"           // 设备所连接的服务器ip
	RedisDeviceSessionLock       = RedisApp + "device-session-lock:"         // 设备连接会话锁
	RedisAlarmNotifyLock         = RedisApp + "alarm-notify-lock:"           // 告警通知锁，五分钟内相同告警静默
	RedisRobotRTMap              = RedisApp + "robot-realtime-map:"          // 设备当前使用的地图
	RedisRobotRtPosition         = RedisApp + "robot-realtime-position:"     // 设备的实时位置
	RedisRobotChatData           = RedisApp + "robot-chat-data"              // 聊天数据
	RedisDeviceCameraViewer      = RedisApp + "device-camera-viewer:"        // 摄像头观看者
	RedisAlarmMonitorContent     = RedisApp + "alarm-monitor-content:"       // 告警内容
	RedisAlarmMonitorMaxTimes    = RedisApp + "alarm-monitor-max-times:"     // 每日告警的最大次数
	RedisAlarmMonitorRateLimit   = RedisApp + "alarm-monitor-rate-limit:"    // 告警限流
	RedisAlarmMonitorSet         = RedisApp + "alarm-monitor-set"            // 设备告警计划-通过有序集合表示
	RedisAlarmMonitorStatus      = RedisApp + "alarm-monitor-status:"        // 设备告警计划的状态-通过hash表示
	RedisAlarmMonitorMerge       = RedisApp + "alarm-monitor-merge:"         // 设备告警状态合并标志
	RedisDDRConfig               = RedisApp + "ddr-config:"                  // 95配置
	RedisGeo                     = RedisApp + "location-geo:"                // 商场地理位置信息
	RedisOperationLock           = RedisApp + "operation-lock:"              // 操作并发锁
)

const (
	IsPushingFlow       = "is-pushing-flow"        // 正在推流
	IsPushingPointCloud = "is-pushing-point-cloud" // 正在推送电源
)
